|
PHY RAY CAST CLOSEST SHAPE
Perform a ray cast and check if a collision occurs between the ray and any objects.
Return Integer=PHY RAY CAST CLOSEST SHAPE(Float Value, Float Value, Float Value, Float Value, Float Value, Float Value)
originX#
Float
origin of the ray on the X axis
originY#
Float
origin of the ray on the Y axis
originZ#
Float
origin of the ray on the Z axis
directionX#
Float
direction of the ray on the X axis
directionY#
Float
direction of the ray on the Y axis
directionZ#
Float
direction of the ray on the Z axis
A value of 1 is returned if the ray hit an object whereas 0 is returned if the ray did not hit an object
This command will only fill in collision data for the closest rigid body.
No example code is provided for this command
|